From: Tuomas Nurmi Date: Thu, 25 Jul 2024 07:14:22 +0000 (+0000) Subject: status/network: Fix enterprise network connecting from panel X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~229^2^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=51bcf829391e054d2e64cb02f417d386bedc2463;p=gnome-shell.git status/network: Fix enterprise network connecting from panel Use the right variable. A static WirelessNetwork._securityTypes variable does exist, but the correct variable when checking autoconnect possibility is this._securityType; this._securityTypes is undefined, causing clicking an enterprise network name in panel network selector do nothing instead of properly opening GNOME Settings panel. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7698 Part-of: (cherry picked from commit a21558d67f37b0c9161f3df21678c165004a02a5) --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 404733b74..bef59880d 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -934,8 +934,8 @@ const WirelessNetwork = GObject.registerClass({ canAutoconnect() { const canAutoconnect = - this._securityTypes !== NM.UtilsSecurityType.WPA_ENTERPRISE && - this._securityTypes !== NM.UtilsSecurityType.WPA2_ENTERPRISE; + this._securityType !== NM.UtilsSecurityType.WPA_ENTERPRISE && + this._securityType !== NM.UtilsSecurityType.WPA2_ENTERPRISE; return canAutoconnect; }